package com.firefly.admin.monitor.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.firefly.admin.common.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "StMonitorJob", description = "定时任务信息表")
public class FyMonitorJob extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "任务ID")
    private Long jobId;

    @ApiModelProperty(value = "任务名称")
    private String jobName;

    @ApiModelProperty(value = "任务类")
    private String jobClass;

    @ApiModelProperty(value = "任务方法名")
    private String jobMethodName;

    @ApiModelProperty(value = "cron表达式")
    private String jobCron;

    @ApiModelProperty(value = "任务状态", notes = "0：启动 1：停止")
    private String jobStatus;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "上次执行结果", notes = "0：执行成功 1：执行失败 2：未执行")
    private String lastExecuteResult;

    @ApiModelProperty(value = "执行策略", notes = "1：立即执行 2：执行一次 3：放弃执行")
    private String executionPolicy;
}
